#ifndef _PILINK_PILOT_H_
#define _PILINK_PILOT_H_

#include "pilink_core.h"

#define PILINK_TYPE_CAM_CMD                 (PILINK_CLASS_CAMERA + 0x01)
#define PILINK_TYPE_CAM_CLI_INFO            (PILINK_CLASS_CAMERA + 0x02)
#define PILINK_TYPE_CAM_SETTING             (PILINK_CLASS_CAMERA + 0x03)
#define PILINK_TYPE_CAM_SER_INFO            (PILINK_CLASS_CAMERA + 0x04)

#pragma pack(1)

enum pilink_commmand_e{
    PILINK_CAM_CMD_TAKE         = 0x00001001,
    PILINK_CAM_CMD_START_REC    = 0x00001002,
    PILINK_CAM_CMD_STOP_REC     = 0x00001003,
    PILINK_CAM_CMD_FLASH_ON     = 0x00001003,
    PILINK_CAM_CMD_FLASH_OFF    = 0x00001003,
    PILINK_CAM_CMD_EXIT         = 0x00002001,
};

struct pilink_cam_command_s{
    unsigned long long timestamp;
    unsigned int  cmd;
    unsigned int  param[6];
};


struct pilink_cam_client_info_s{
    unsigned long long timestamp;
    unsigned int  client_id;
    unsigned char ip_addr[20];
};

struct pilink_cam_server_info_s{
    unsigned long long timestamp;
    unsigned int  port;
};

struct pilink_cam_client_setting_s{
    unsigned long long timestamp;
    unsigned int  client_id;
};


#pragma pack()


#endif
